<template>
  <BreadView v-if="category">
    <BreadItem :to="'/'">首页</BreadItem>
    <BreadItem :to="'/'">{{category[1].name}}</BreadItem>
    <BreadItem :to="'/'">{{category[0].name}}</BreadItem>
    <BreadItem :to="'/'">{{name}}</BreadItem>
  </BreadView>
</template>
  
  <script>
import BreadView from "@/components/utils/Bread/BreadView"
import BreadItem from "@/components/utils/Bread/BreadItem"
export default {
  components: { BreadView, BreadItem },
  props: {
    category: {
      type: Array,
      default: () => { }
    },
    name: {
      type: String,
      default: ''
    }
  }
}
  </script>
  
  <style>
</style>